export const Layout = () => import('@/layout/index.vue')

export default {
  path: '/questions',
  component: Layout,
  name: 'questions',
  meta: {
    title: '题库管理',
    icon: 'documentation'
  },
  children: [
    {
      path: '',
      component: () => import('@/views/question/index.vue'),
      name: 'questions-list',
      meta: { title: '基础题库', noCache: true, icon: 'component' }
    },
    {
      path: 'choice',
      component: () => import('@/views/question/choice.vue'),
      name: 'questions-choice',
      meta: { title: '精选题库', noCache: true, icon: 'component' }
    },
    {
      path: 'new',
      component: () => import('@/views/question/insert.vue'),
      name: 'questions-new',
      meta: { title: '试题录入', noCache: true, icon: 'component' }
    },
    {
      path: 'randoms',
      component: () => import('@/views/question/random.vue'),
      name: 'questions-randoms',
      meta: { title: '组题列表', noCache: true, icon: 'component' }
    }
  ]
}
